home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / system / xmailbox.2-s / xmailbox / xmailbox-2.2 / Imakefile.linux < prev    next >
Encoding:
Text File  |  1995-05-17  |  2.8 KB  |  94 lines

  1. #------------------------------------------
  2. # Change the XPM include and lib
  3. # directories appropriately.
  4. # Note: you need to have XPM 3.4 or higher!
  5. #------------------------------------------
  6. #
  7.        XPMINCDIR = /usr/X11/include/X11
  8. #      XPMINCDIR = /usr/local/include
  9.        XPMLIBDIR = /usr/X11/lib/
  10. #      XPMLIBDIR = $(LIBDIR)/xpm
  11.           XPMLIB = -L$(XPMLIBDIR) -lXpm
  12.  
  13. #-------------------------------
  14. # Architecture specific defines
  15. #-------------------------------
  16. #ifdef HPArchitecture
  17. CCOPTIONS = -Aa -D_HPUX_SOURCE
  18. #endif
  19.  
  20. #------------------------------------------
  21. # Comment the following define if you
  22. # want audio support
  23. #------------------------------------------
  24. /* #define NO_AUDIO          /* */
  25.  
  26. #------------------------------------------
  27. # Uncomment the following define if you
  28. # are using a SUN SPARC workstation and
  29. # you would like to use the standard SUN
  30. # audio driver when neither the NCD audio
  31. # server nor the rplay sound server is
  32. # available.
  33. # Note: When you compile using SUN_AUDIO 
  34. #       with either NCD_AUDIO or 
  35. #       RPLAY_AUDIO,  the program will
  36. #       fall back to use the standard SUN
  37. #       audio driver if a rplay or NCD
  38. #       server is not running.
  39. #------------------------------------------
  40. SUN_AUDIO = -DSUN_AUDIO   /* */
  41.  
  42. #------------------------------------------
  43. # Uncomment the following define if you
  44. # are using an NCD audio server
  45. #------------------------------------------
  46. /* #define NCD_AUDIO         /* */
  47.  
  48. #------------------------------------------
  49. # Uncomment the following define if you
  50. # are using rplay sound server
  51. #------------------------------------------
  52. /* #define RPLAY_AUDIO       /* */
  53.  
  54. #ifndef NO_AUDIO
  55. #ifdef NCD_AUDIO
  56.       NCDINCDIR = /usr/local/include
  57.       NCDLIBDIR = /usr/local/lib
  58. #      NCDINCDIR = $(HOME)/include
  59. #      NCDLIBDIR = $(HOME)/lib/sun4/clibs
  60.  
  61.          SNDLIB = $(NCDLIBDIR)/libaudio.a -lm
  62.        INCLUDES = -I$(XPMINCDIR) -I$(NCDINCDIR)
  63.   EXTRA_DEFINES = -DNCD_AUDIO $(SUN_AUDIO) 
  64. #else
  65. #ifdef RPLAY_AUDIO
  66. #       RPINCDIR = /usr/local/include/rplay
  67. #       RPLIBDIR = /usr/local/lib
  68.        RPINCDIR = $(HOME)/include/rplay
  69.        RPLIBDIR = $(HOME)/lib/sun4/clibs
  70.          SNDLIB = -L$(RPLIBDIR) -lrplay -lm
  71.        INCLUDES = -I$(XPMINCDIR) -I$(RPINCDIR)
  72.   EXTRA_DEFINES = -DRPLAY_AUDIO $(SUN_AUDIO) 
  73. #else
  74.          SNDLIB = 
  75.        INCLUDES = -I$(XPMINCDIR)
  76.   EXTRA_DEFINES = $(SUN_AUDIO)
  77. #endif /* RPLAY_AUDIO */
  78. #endif /* NCD_AUDIO */
  79. #else
  80.          SNDLIB = 
  81.        INCLUDES = -I$(XPMINCDIR)
  82.   EXTRA_DEFINES = -DNO_AUDIO
  83. #endif /* NO_AUDIO */
  84.  
  85.    SRCS = Mailbox.c xmailbox.c 
  86.    OBJS = Mailbox.o xmailbox.o
  87.  
  88.         DEPLIBS = $(DEPXLIB) $(DEPXAWLIB) $(DEPXTOOLLIB) $(DEPXMULIB)
  89. LOCAL_LIBRARIES = $(XPMLIB) $(SNDLIB)$(XLIB) $(XAWLIB) $(XTOOLLIB) $(XMULIB)
  90.  
  91. ComplexProgramTarget(xmailbox)
  92. InstallAppDefaults(XMailbox)
  93.  
  94.